﻿//
// Created: 2018/12/15
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Model.ZXBuiness;

namespace Model.ZXBuiness.Map
{
    internal  class ZXUserFenRunMap:EntityTypeConfiguration< ZXUserFenRun >    
    {
        public ZXUserFenRunMap()
        {
             this.ToTable("ZX_UserFenRun");
             this.HasKey(i => new { i.UserFenRunId });
             this.Property(i => i.UserFenRunId).HasColumnName("UserFenRunId");                     
             this.Property(i => i.ZX_UserId).HasColumnName("ZX_UserId");                     
             this.Property(i => i.OrderFengyunId).HasColumnName("OrderFengyunId");                     
             this.Property(i => i.FenRunLevel).HasColumnName("FenRunLevel");                     
             this.Property(i => i.FenRunMoney).HasColumnName("FenRunMoney");                     
             this.Property(i => i.Remarks).HasColumnName("Remarks");                     
             this.Property(i => i.CreateTime).HasColumnName("CreateTime");                     
             this.Property(i => i.TiXianTime).HasColumnName("TiXianTime");                     
             this.Property(i => i.IsTiXian).HasColumnName("IsTiXian");                     
             this.Property(i => i.AccountBalanceCode).HasColumnName("AccountBalanceCode");
            this.Property(i => i.FRcode).HasColumnName("FRcode"); 
        }   
    }
    
     public static class ZXUserFenRunMapExtensions
    {
        public static void UserZXUserFenRunMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new ZXUserFenRunMap());
        }
    }
}